package com.library.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SearchPageDTO implements Serializable {

    private int page;

    private int pageSize;

    private String title;

    private String author;

    private String isbn;

    private String publishDateStart;

    private String publishDateEnd;

    private Long categoryId;

    private BigDecimal priceStart;

    private BigDecimal priceEnd;

    // 排序方式 0:默认排序 1:书名排序 2:价格排序 3:出版时间排序
    private int sort;

    // 排序方式 0:升序 1:降序
    private int order;
}
